地図:岐阜県

説明

指定した座標に岐阜県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,0,0,0,14,30,15,15,31);
uart(n,14,3,x+16,y,c,31,63,127,127,255,255,255,255);
uart(n,14,3,x+24,y,c,128,240,252,252,252,252,248,248);
y=y+8;
uart(n,14,3,x+8,y,c,31,31,31,63,63,63,31,15);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,240,240,248,248,248,240,224,64);
y=y+8;
uart(n,14,3,x,y,c,0,0,35,255,127,255,255,127);
uart(n,14,3,x+8,y,c,15,31,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,254,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,0,0,0,192,224,240,240,224);
y=y+8;
uart(n,14,3,x,y,c,127,63,63,31,31,31,31,63);
uart(n,14,3,x+8,y,c,255,255,255,255,254,248,192,192);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,127,63);
uart(n,14,3,x+24,y,c,240,252,252,248,252,248,248,248);
y=y+8;
uart(n,14,3,x,y,c,63,51,3,1,0,0,0,0);
uart(n,14,3,x+8,y,c,128,128,128,128,0,0,0,0);
uart(n,14,3,x+16,y,c,13,0,0,0,0,0,0,0);
uart(n,14,3,x+24,y,c,224,64,0,0,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る